package day07.zuoye.four;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        Employee manager = new Manager(sc.nextInt());
        Employee salesman = new Salesman(sc.nextInt(), sc.nextInt());
        Employee worker = new Worker(sc.nextInt(), sc.nextInt());

        System.out.println(manager.getSalary());
        System.out.println(salesman.getSalary());
        System.out.println(worker.getSalary());
    }
}
